package com.aoxiang.earlywaringapi.http;

import lombok.Getter;

/**
 * @author teevil@126.com
 * @date 2021/6/29
 */
@Getter
public class ServerException {
    private final Integer code;
    private final String msg;
    private final Object data;

    public ServerException(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ServerException(Integer code, String msg) {
        String[] arr = new String[0];
        this.code = code;
        this.msg = msg;
        this.data = arr;
    }
}
